package com.groupbuying.store.dao.forManage;

import com.groupbuying.store.domain.forManage.StoreRoleDO;

import java.math.BigInteger;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * 角色
 * @author yuwenxiaodong
 * @email yuwenxiaodong@126.com
 * @date 2019-03-22 11:55:07
 */
@Mapper
@Repository
public interface StoreRoleDao {

	StoreRoleDO get(BigInteger roleId);
	
	List<StoreRoleDO> list(Map<String, Object> map);

    List<StoreRoleDO> listLike(Map<String, Object> map);
	
	int count(Map<String, Object> map);

    int countLike(Map<String, Object> map);
	
	int save(StoreRoleDO storeRole);
	
	int update(StoreRoleDO storeRole);
	
	int remove(BigInteger role_id);
	
	int batchRemove(String[] roleIds);

	List<BigInteger> roleIdsByAccountId(String accountId);
}
